package org.misalen.web.database.model.mysql.pro;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 司机用户表
 * 
 * @author guochao
 *
 */
@Entity
@Table(name = "ProDriverLocation")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProDriverLocation extends BaseSqlModel {

	@ModelComment("司机用户id")
	@Column(name = "driverUserId")
	private String driverUserId;

	@ModelComment("经度")
	@Column(name = "longitude", scale = 6, precision = 10)
	private BigDecimal longitude;

	@ModelComment("纬度")
	@Column(name = "latitude", scale = 6, precision = 10)
	private BigDecimal latitude;
	
	@Transient
	@ModelComment("用户名")
	private String userName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 获取driverUserId
	 * 
	 * @return driverUserId driverUserId
	 */
	public String getDriverUserId() {
		return driverUserId;
	}

	/**
	 * 设置driverUserId
	 * 
	 * @param driverUserId
	 *            driverUserId
	 */
	public void setDriverUserId(String driverUserId) {
		this.driverUserId = driverUserId;
	}

	/**
	 * 获取longitude
	 * 
	 * @return longitude longitude
	 */
	public BigDecimal getLongitude() {
		return longitude;
	}

	/**
	 * 设置longitude
	 * 
	 * @param longitude
	 *            longitude
	 */
	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	/**
	 * 获取latitude
	 * 
	 * @return latitude latitude
	 */
	public BigDecimal getLatitude() {
		return latitude;
	}

	/**
	 * 设置latitude
	 * 
	 * @param latitude
	 *            latitude
	 */
	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

}
